//
//  ReplyTableCell.m
//  MiaoTu
//
//  Created by dllo on 16/9/30.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ReplyTableCell.h"
#import "ReplyItem.h"
#import "UIImageView+WebCache.h"

@interface ReplyTableCell ()
@property (weak, nonatomic) IBOutlet UIImageView *headImage;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *replyLabel;

@end

@implementation ReplyTableCell

- (void)setReply:(ReplyItem *)reply {
    _reply = reply;
    [_headImage sd_setImageWithURL:[NSURL URLWithString:_reply.HeadUrl]];
    _nameLabel.text = _reply.Nickname;
    _dateLabel.text = _reply.Created;
    _replyLabel.text = _reply.Content;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
